package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 库存商品表
 * 
 * @author wxw
 * @email 
 * @date 2020-03-24 17:22:46
 */

@Data
@TableName("unimall_warehouse_oper_log")
public class WarehouseOperLogDO extends SuperDO {

	/**
	 * 
	 */
	/**
	 * 仓库id
	 */
    @TableField("warehouse_id")
    private Long warehouseId;

	@TableField("warehouse_name")
	private String warehouseName;

	/**
	 * 商品id
	 */
    @TableField("sku_id")
    private Long skuId;
	/**
	 * 商品名称
	 */
	@TableField("spu_name")
	private String spuName;

	/**
	 * 商品类型名称
	 */
	@TableField("sku_name")
	private String skuName;

	@TableField("spu_no")
	private String spuNo;

	@TableField("sku_no")
	private String skuNo;


	@TableField("spu_id")
	private Long spuId;
	/**
	 * 单据编号
	 */
	@TableField("order_id")
	private Long orderId;

	@TableField("order_no")
	private String orderNo;


	/**
	 * 变化后库存数量
	 */
    @TableField("warehouse_sku_stock")
    private Float warehouseSkuStock;
	/**
	 * 类型1代表入口，2代表出库,3代表盘点
	 */
    @TableField("type")
    private Integer type;
	/**
	 * 变化库存
	 */
    @TableField("change_sku_stock")
    private Float changeSkuStock;
	/**
	 * 变化时间
	 */
    @TableField("gmt_create")
    private Date gmtCreate;
	/**
	 * 
	 */
    @TableField("gmt_update")
    private Date gmtUpdate;
	/**
	 * 
	 */
    @TableField("admin_id")
    private Long adminId;
	@TableField("admin_name")
	private String adminName;

	/**
	 *  原库存
	 */
	@TableField("orig_sku_stock")
	private Float origSkuStock;

	/**
	 * 原平均价
	 */
	@TableField("orig_avg_price")
	private Integer origAvgPrice;

	/**
	 * 当前平均价
	 */
	@TableField("curr_avg_price")
	private Integer currAvgPrice;

}
